package com.nopay.dxdwphone.ui.ativity;

import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import com.blankj.utilcode.util.ToastUtils;
import com.nopay.dxdwphone.base.BaseActivity;

import com.nopay.dxdwphone.databinding.ActivityCompanyPositionBinding;

/**
 * @ProjectName: myVisualPhone
 * @Package: cn.cn.myvisualphone.ui.ativity
 * @ClassName: ForgetActivity
 * @Description: 更新用户姓名
 * @Author: anqi
 * @CreateDate: 2021/5/23 8:05
 * @UpdateUser: 更新者
 * @UpdateDate: 2021/5/23 8:05
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public class CompanyPositionActivity extends BaseActivity<ActivityCompanyPositionBinding> {

    @Override
    protected void init(Bundle savedInstanceState, Object... preData) {
        binding.rlRoot.setPadding(0, getStatusBarHeight(CompanyPositionActivity.this), 0, 0);
        binding.ivBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                mSwipeBackHelper.backward();

            }
        });
        binding.commitBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                String position = binding.et.getText().toString().trim();
                if (TextUtils.isEmpty(position)){
                    ToastUtils.showShort("请输入公司职位");
                    return;
                }
                //todo 请求接口
            }
        });

    }



}
